<?php

class Conector
{
	protected $conector;
	
	public function __construct()
	{
		$this->conector = null;
	}
	
	protected function conectar($host='localhost', $usuario='root', $clave='')
	{
		$this->conector = mysql_connect($host, $usuario, $clave);
		if($this->conector)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	
	protected function desconectar()
	{
		mysql_close($this->conector);
	}
	
}